home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / pascal / tppop16.zip / NODICE.BAT < prev    next >
DOS Batch File  |  1988-09-28  |  871b  |  29 lines

  1. @echo off
  2. rem  This is an example of using a single removal program for all
  3. rem  of the possible pop-up programs.  The program REMOVE accepts
  4. rem  a single command line option which is the I.D. code of the
  5. rem  program.  The batch file is only used as a simple convenience.
  6. rem  The removal program returns an error code if the removal was
  7. rem  unsuccessful:
  8. rem
  9. rem       1  -  program was not found
  10. rem       2  -  can't unload the program
  11. rem       3  -  not a valid number on the command line
  12. rem
  13. echo Attempting to remove POPDICE from program memory
  14. remove $89
  15. if errorlevel == 3 goto bad
  16. if errorlevel == 2 goto cant
  17. if errorlevel == 1 goto nowhere
  18. echo POPDICE successfully removed
  19. goto done
  20. :bad
  21. echo Invalid I.D. number
  22. goto done
  23. :cant
  24. echo Unable to remove POPDICE from memory
  25. goto done
  26. :nowhere
  27. echo POPDICE is not installed
  28. :done
  29.